num1 = input("请输入一串数字:")

num1_pre = num1[:2]
if num1_pre == "0b" :
    patter_str = "01"
elif num1_pre == "0o":
    patter_str = "01234567"
elif num1_pre == "0x":
    patter_str = "012356789abcdef"
elif num1.isdigit():
    patter_str ="0123456789"
flag = 0  # 标志位0
for i in num1[2:]:
    if i not in patter_str:
        flag = 1
        break
if flag == 0:
    print("{}是整型".format(num1))
else:
    print("{}不是整型".format(num1))
